<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>添加公告</title>
<script language="javascript" src="/js/js.js"></script>
<link href="/styles/style.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="/js/jquery-1.7.2.min.js"></script>
<script type="text/javascript">
	$(function() {

		$.post("/admin/ajaxannolist", function(data) {

			var html = "";
			for (var i = 0; i < data.length; i++) {

				html += "<a href='#'><div>";
				html += "<font style='font-weight: bold;'> >>>&nbsp;&nbsp; "
						+ data[i].department
						+ "</font>&nbsp;&nbsp;&nbsp;&nbsp;"
				html += data[i].astart + "&nbsp;&nbsp;&nbsp;&nbsp;发表公告："
						+ data[i].acomment + "!"
				html += "</div></a>"
			}

			$("#demo1").html("");
			$("#demo1").append(html);

		}, "json");
	});
</script>
</head>
<body>
	<br />
	<form action="/admin/announceadd" method="post" name="myform"
		id="myform">
		<table class="table11" style="width: 90%;">
			<tr>
				<th style="text-align: center;">最近一周的公告</th>
			</tr>

			<tr>
				<td><marquee direction="up" height="100%" scrollamount="2"
						onmousemove="this.stop()" onmouseout="this.start()">
						<div id="demo"
							style="overflow: hidden; height: 120px; border: 0px solid #dde5bc;">
							<div id="demo1"></div>
							<div id="demo2"></div>
						</div>
					</marquee></td>
			</tr>

		</table>
	</form>
	<br />
	<br />
	<form action="/admin/announceadd" method="post" id="myform">
		<table class="table11" style="width: 90%; text-align: center;">
			<tr>
				<th style="text-align: center;" colspan="4">公告内容</th>
			</tr>

			<tr>
				<td colspan="4"><textarea name="acomment" cols="100" rows="5"></textarea></td>
			</tr>

			<tr>
				<td align="right">发布时间</td>
				<td align="left"><input type="text" name="astart" id="dt" />
					<div id="dd"></div></td>
				<td align="right">截止时间</td>
				<td align="left"><input type="text" name="aend" id="dt" />
					<div id="dd"></div></td>
			</tr>
			<tr>
				<td colspan="4"><input type="submit" class="btn" value="提 交" />&nbsp;
					<input type="button" class="btn"
					onclick="javascript:history.go(-1);" value="取 消" /></td>
			</tr>

		</table>
	</form>
</body>
</html>